import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "admin",
    name: "admin",
    meta: [{ name: "管理员" }],
    component: () => import("../views/system/Admin.vue")
  },
  {
    path: "member",
    name: "member",
    meta: [{ name: "会员管理" }],
    component: () => import("../views/system/Member.vue")
  },
  {
    path: "role",
    name: "role",
    meta: [{ name: "角色管理" }],
    component: () => import("../views/system/Role.vue")
  }
];

export default routes;
